<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="archsw0904.controller.shopping.order.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="/BookShopWeb/paymentResponse.jsp" method="post">
<%
	request.setCharacterEncoding(application
			.getInitParameter("PARAMETER_ENCODING"));

	if (request.getMethod().compareToIgnoreCase("post") == 0) {
		String status = request.getParameter("payd");
		String orderId = request.getParameter("orderId");
		ConfirmOrderBeanServiceLocator confirmOrderBeanServiceLocator = new ConfirmOrderBeanServiceLocator();
		confirmOrderBeanServiceLocator
				.setConfirmOrderBeanPortEndpointAddress(application
						.getInitParameter("CONFIRM_ORDER_WEB_SERVICE_URI"));
		ConfirmOrderBean confirmOrder = confirmOrderBeanServiceLocator
				.getConfirmOrderBeanPort();

		confirmOrder.setOrderPaymentStatus(Integer.valueOf(orderId),
				Boolean.valueOf(status));
	}
%>
</form>

</body>
</html>